第13步:让我们将动作再重复两次。

  • 点击 并拖动出 Flip Right Left 和 Wait。将 .wait() 中的数字更改为 1。
  • 再次点击 并拖出另一个 Flip Right Left 和另一个 Wait。将 .wait() 中的数字更改为 1。

当你完成时,应该得到四个 Flip Right Left 指令和四个新的 Wait 指令。

To navigate the page using the TAB key, first press ESC to exit the code editor.

stage.set_background("footballfield2") sprite = codesters.Sprite("cheerleader1") sprite.move_down(150) sprite.flip_up_down() sprite.move_right(200) sprite.move_left(150) sprite.flip_up_down() stage.wait(2) sprite.move_up(50) sprite.turn_left(360) sprite.move_down(50) stage.wait(2) sprite.flip_right_left() stage.wait(1) sprite.flip_right_left() stage.wait(1)
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)